package com.bootssm.dao;

import com.bootssm.pojo.Book;
import com.bootssm.pojo.BookVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookMapper {
    public List<Book> findAll(BookVO bookVO);
    public Integer getCount(BookVO bookVO);
    public void save(Book book);
    public void delete(String bookId);
    public Book findById(String bookId);
    public void update(Book book);
    // 图书库存-1
    void updateBookInventory(String bookId);
    // 图书库存+1
    void addBookInventory(String bookId);
}
